<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="applicable-device" content="pc">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="icon" href="/icon.png" />
    <link rel="stylesheet" href="/static/index/css/reset.css" />
    <link rel="stylesheet" href="/static/index/lib/bootstrap.min.css" />
    <link rel="stylesheet" href="/static/index/css/common.css">
    <link rel="stylesheet" href="/static/index/css/home.css">
    <link rel="stylesheet" href="/static/index/css/users.css">
    <script src="/static/index/lib/jquery-2.1.4.js"></script>
    <script src="/static/index/lib/bootstrap.min.js"></script>
    <script type="text/javascript" src="/static/index/lib/template.js"></script>
    <script src="/static/index/layer/layer.js"></script>
    <script>
            var _hmt = _hmt || [];
            (function() {
              var hm = document.createElement("script");
              hm.src = "https://hm.baidu.com/hm.js?8b340ebdd740974de9d621b14ab09b43";
              var s = document.getElementsByTagName("script")[0]; 
              s.parentNode.insertBefore(hm, s);
            })();
        </script>
</head>

<body>
    {include file="public/push"}
    {include file="public/usersHeader"}
    <div class="widthFullScreen">
        <div class="wdSafe user_body clearfix">
            {include file="public/usersLeftNav"}
            <!-- left over -->
            <div class="pull-right right_wrap">
                <div class="nav_common border-top">
                    <ol class="breadcrumb pull-left">
                        <li>
                            <a href="/users/index">用户中心</a>
                        </li>
                        <li>
                            <a href="/users/allOrders">全部订单</a>
                        </li>
                        <li class="active">订单详情</li>
                    </ol>
                </div>
                <div class="comUser_wrap">
                    <div class="form-horizontal">

                        <div id="htmlList"></div>
                        <script id="listLeftScript" type="text/html">
                            <div class="form-group">
                                <label for="two" class="col-sm-2 control-label">
                                    &nbsp;&nbsp;办理资质
                                </label>
                                <div class="col-sm-10">
                                    <input type="text" readonly="readonly" class="form-control ipt_style" name="" value="{{category_name}}" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="two" class="col-sm-2 control-label">
                                    &nbsp;&nbsp;联系电话
                                </label>
                                <div class="col-sm-10">
                                    <input type="number" readonly="readonly" class="form-control ipt_style" name="" value="{{phone}}" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="two" class="col-sm-2 control-label">
                                    &nbsp;&nbsp;所在地区
                                </label>
                                <div class="col-sm-10">
                                    <input type="text" readonly="readonly" class="form-control ipt_style" name="" value="{{address}}" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="two" class="col-sm-2 control-label">
                                    &nbsp;&nbsp;下单时间
                                </label>
                                <div class="col-sm-10">
                                    <input type="text" readonly="readonly" class="form-control ipt_style" name="" value="{{create_time}}" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="one" class="col-sm-2 control-label">
                                    &nbsp;&nbsp;详细介绍
                                </label>
                                <div class="col-sm-10">
                                    <textarea readonly="readonly" class="form-control textarea_style" value="{{remark}}" name="" rows="" cols="" id="">{{remark}}</textarea>
                                </div>
                            </div>
                        </script>
                        <!-- <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <div class="submitBtn" onclick="saveCompany()">保存</div>
                            </div>
                        </div> -->
                    </div>
                </div>
            </div>
            <!-- right over -->
        </div>
    </div>
    <div class="widthFullScreen heightGray"></div>
    {include file="public/footer"}
    <!-- <script type="text/javascript" src="/static/index/js/companyInfor.js"></script> -->
    <script>
    var baseUrl = 'https://api.qikuai100.com/';
    var uid = localStorage.getItem("uid"),
        id = {$id};

    $(function() {
        initInfor();
    });

    
    /**
    * 初始化
    */
    function initInfor(){

        $.ajax({
            type: "POST",
            url: baseUrl + "api/order/getOne",
            data: {
                "uid": uid,
                "id": id
            },
            success: function(result) {
                console.log(result.data);
                var dataL = result.data;
                if(result.ret == 0){
                    var htmlList = template('listLeftScript',dataL);
                    document.getElementById('htmlList').innerHTML = htmlList;
                }else{
                    layer.msg(result.res_info);
                }
            }
        });
    }

    </script>
</body>

</html>